package com.fj.netty.rpc.protocol;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author fj
 * @date 2024/1/18 11:48
 */
public class SequenceIdUtil {
    private static AtomicInteger atomicInteger = new AtomicInteger(1);
    public static Integer getSequenceId(){
        return atomicInteger.getAndIncrement();
    }
}
